package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * UpUserLayout entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "up_user_layout")
@IdClass(e2q.portal.domain.uPortal.UpUserLayoutId.class)
public class UpUserLayout implements java.io.Serializable {

	// Fields
	@Id
	@Column(name = "LAYOUT_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer layoutId;
	@Id
	@Column(name = "USER_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer userId;
	@Column(name = "LAYOUT_TITLE")
	private String layoutTitle;
	@Column(name = "INIT_STRUCT_ID")
	private Integer initStructId;

	// Constructors

	/** default constructor */
	public UpUserLayout() {
	}

	/** minimal constructor */
	public UpUserLayout(Integer layoutId, Integer userId) {
		this.layoutId = layoutId;
		this.userId = userId;
	}

	/** full constructor */
	public UpUserLayout(Integer layoutId, Integer userId, String layoutTitle,
			Integer initStructId) {
		this.layoutId = layoutId;
		this.userId = userId;
		this.layoutTitle = layoutTitle;
		this.initStructId = initStructId;
	}

	// Property accessors

	public Integer getLayoutId() {
		return this.layoutId;
	}

	public void setLayoutId(Integer layoutId) {
		this.layoutId = layoutId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getLayoutTitle() {
		return this.layoutTitle;
	}

	public void setLayoutTitle(String layoutTitle) {
		this.layoutTitle = layoutTitle;
	}

	public Integer getInitStructId() {
		return this.initStructId;
	}

	public void setInitStructId(Integer initStructId) {
		this.initStructId = initStructId;
	}

}